<script setup>

defineProps({
  good: {
    type: Object,
    default: () => { }
  }
})

</script>



<template>
  <div class="wangwang">
    <div class="photo">
      <img
        src="https://img.alicdn.com/imgextrahttps://img.alicdn.com/imgextra/i2/4103434468/O1CN01Z61B8b1isOUCMVsqg_!!4103434468-0-alimamacc.jpg_580x580q90.jpg_.webp"
        alt="">
    </div>
    <!-- 除图片外的文字描述 -->
    <div class="word">
      <div class="desc">
        <em>分期免息 现货速发 官方正品 HUAWEI/华为50 Pro 新款5G曲面屏旗</em>
      </div>
      <div class="price">
        <span>￥ 1488.00 </span>
        <span> 86人付款</span>
        <span>广东 深圳</span>
      </div>
      <div class="serve">
        <span>赠运费险</span>
        <span>包邮</span>
      </div>
      <div class="shop">
        <span>华为专卖店</span>
      </div>
    </div>
  </div>
</template>



<style scoped lang="scss">
.wangwang {
  width: 262px;
  height: 400px;
  background-color: #fff;
  border-radius: 10px;

  .photo {
    width: 260px;
    height: 260px;
    border-radius: 10px;
  }

  .desc {
    width: 260px;
    height: 42px;
    margin-top: 5px;
    padding: 0 5px;

    em {
      font-weight: 900;
    }
  }

  .price {
    width: 260px;
    height: 20px;
    padding: 0 5px;

    :nth-child(1) {
      color: $BLColor;
      font-size: 18px;
      font-weight: 700;
    }

    :nth-child(2) {
      font-weight: 100;
      margin: 0 5px;
    }
  }

  .serve {
    width: 260px;
    height: 22px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    padding: 0 5px;

    span {
      margin: 0 5px;
      padding: 2px;
      border: 1px $BLColor solid;
      border-radius: 5px;
      color: $BLColor;
      font-weight: 900;
      font-size: 12px;
    }
  }

  .shop {
    margin-top: 8px;
    padding: 0 6px;

    span {
      font-weight: 300;
    }
  }
}

.wangwang:hover {
  background-color: #fff9f5;
  border: 1px $BLColor solid;
  border-radius: 10px;
}
</style>